import request from '@/utils/request'

export function fetch_users(args) {
  return request({
    url: `/erp/api/fetch_users/`,
    method: 'POST',
    data: args
  })
}
export function ModifyProjectuser(data) {
  return request({
    url: `/erp/api/modify_projectuser/`,
    headers: { 'content-type': 'application/json' },
    method: 'post',
    data: JSON.stringify(data)
  })
}
export function modify_project_users(args) {
  return request({
    url: `/erp/api/modify_project_users/`,
    method: 'POST',
    data: args
  })
}

export function add_project_user(args) {
  return request({
    url: `/erp/api/add_porject_user/`,
    method: 'POST',
    data: args
  })
}

export function delete_project_user(args) {
  return request({
    url: `/erp/api/delete_project_user/`,
    method: 'POST',
    data: args
  })
}

export function fetch_groups(args) {
  return request({
    url: `/erp/api/fetch_groups/`,
    method: 'POST',
    data: args
  })
}

export function modify_user_groups(args) {
  return request({
    url: `/erp/api/modify_user_groups/`,
    method: 'POST',
    data: args
  })
}

export function user_taggle(args) {
  return request({
    url: `/erp/api/user_taggle/`,
    method: 'POST',
    data: args
  })
}

export function fetch_user_profile(args) {
  return request({
    url: `/erp/api/fetch_user_profile/`,
    method: 'POST',
    data: args
  })
}

export function moidfy_user_profile(args) {
  return request({
    url: `/erp/api/moidfy_user_profile/`,
    method: 'POST',
    data: args
  })
}
